home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freaks Macintosh Archive
/
Freaks Macintosh Archive.bin
/
Freaks Macintosh Archives
/
HackAddict™ Magazine
/
HA 1-12
/
HackAddict11.sit
/
HackAddict 11 ƒ
/
Files
/
Seti's UNIX Shell Scripts
/
enc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-14
|
533b
|
27 lines
/*This program will encrypt words in the one way UNIX style.
To compile: gcc enc.c -o enc
-Seti
*/
#include <unistd.h>
#include <stdio.h>
main()
{
char pass[30];
char salt[3];
char *pw;
printf("\nEnter the password to encrypt: ");
scanf("%s", pass);
printf("\nEnter any two letter/number salt, 2e db 8c etc...\n");
printf("If salt is over two characters the password will not encrypt properly\n");
printf("Enter salt: ");
scanf("%s", salt);
pw = crypt(pass, salt);
printf("\nEncrypted password = %s\n\n", pw);
return 0;
}